package models

type Food struct {
	Id         int     `json:"id" xorm:"not null pk autoincr INT(10)"`
	BusinessId int     `json:"businessId" xorm:"not null comment('业务id') INT(10)"`
	FoodName   string  `json:"foodName" xorm:"not null comment('食物名称') VARCHAR(10)"`
	FoodPrice  float32 `json:"foodPrice" xorm:"not null comment('食物价格') FLOAT(10,2)"`
	PhotoName  string  `json:"phoneName" xorm:"not null comment('图片资源访问地址') VARCHAR(20)"`
}


type UserGroup struct{

	Food     `xorm:"extends"`
	Business `xorm:"extends"`


}

func (UserGroup) TableName() string {
	return "food"
}

